/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lt.cj.core.filters;

import org.htmlparser.Node;
import org.htmlparser.NodeFilter;

/**
 * 过滤 <frame >标签的 filter，用来提取 frame 标签里的 src 属性所表示的链接
 * @author Administrator
 */
public class FrameNodeFilterImpl implements NodeFilter {

    public boolean accept(Node node) {
        if (node.getText().startsWith("frame src=")) {
            return true;
        } else {
            return false;
        }
    }
}
